#include "Rp2AlphaState.h"

using namespace Rp2;

RP2_IMPLEMENT_INITIALIZE(AlphaState);
RP2_IMPLEMENT_TERMINATE(AlphaState);

//---------------------------------------------------------------------------------------------------
AlphaState::AlphaState()
	:
	ConstantColor(0.0f, 0.0f, 0.0f, 0.0f)
{
	BlendEnabled = false;
	SrcBlend = SBF_SRC_ALPHA;
	DstBlend = DBF_ONE_MINUS_SRC_ALPHA;
	TestEnabled = false;
	Test = TF_ALWAYS;
	Reference = 0.0f;
}
//---------------------------------------------------------------------------------------------------
AlphaState::~AlphaState()
{
}
//---------------------------------------------------------------------------------------------------
void AlphaState::Initialize()
{	
	// Initialize global state
	DefaultStates[ALPHA] = new AlphaState;
}
//---------------------------------------------------------------------------------------------------
void AlphaState::Terminate()
{
	DefaultStates[ALPHA] = 0;
}
//---------------------------------------------------------------------------------------------------